package com.scvtc.service.research;

import com.baomidou.mybatisplus.extension.service.IService;
import com.scvtc.domain.ResResult;
import com.scvtc.domain.dto.research.work.ResearchWorkDto;
import com.scvtc.domain.entity.research.ResearchWork;
import com.scvtc.domain.vo.PageVo;
import com.scvtc.domain.vo.research.work.ResearchWorkVo;

import java.util.List;

/**
 * 科研著作信息(ResearchWork)表服务接口
 *
 * @author yiFei
 * @since 2022-06-02 16:17:10
 */
public interface ResearchWorkService extends IService<ResearchWork> {
    /**
     * 查询科研著作信息
     *
     * @param current
     * @param size
     * @param researchWorkVo
     * @return
     */
    ResResult<PageVo<List<ResearchWorkVo>>> getAllResearchWork(Long current, Long size, ResearchWorkVo researchWorkVo);

    /**
     * 增加科研著作信息
     * @param researchWorkDto
     * @return
     */
    ResResult<?> addResearchWork(ResearchWorkDto researchWorkDto);
    /**
     * 修改科研著作信息
     * @param researchWorkDto
     * @return
     */
    ResResult<?> updateResearchWork(ResearchWorkDto researchWorkDto);
    /**
     * 删除单个科研著作信息
     * @param id
     * @return
     */
    ResResult<?> deleteResearchWork(Long id);
    /**
     * 删除多个科研著作信息
     * @param ids
     * @return
     */
    ResResult<?> deleteMultipleResearchWork(Long[] ids);
}

